package Sudoku3;
import Sudoku3.io.textEngine;
import Sudoku3.rules.rule07_common_crossing;
import Sudoku3.solver.solver;
import Sudoku3.solver.solver2;
import Sudoku3.structure.blk;
import Sudoku3.structure.grid;


public class sudoku3 {


	public static void main(String[] args) throws InterruptedException {
		
		
		grid g = new grid();

		
		textEngine t = new textEngine(g);
		try {
//			t.fromString("..3.2.6..9..3.5..1..18.64....81.29..7.......8..67.82....26.95..8..2.3..9..5.1.3..");
//			t.fromString("4.....8.5.3..........7......2.....6.....8.4......1.......6.3.7.5..2.....1.4......");
//			t.fromString("52...6.........7.13...........4..8..6......5...........418.........3..2...87.....");
//			t.fromString("......52..8.4......3...9...5.1...6..2..7........3.....6...1..........7.4.......3.");
			t.fromString("6.2.5.........3.4..........43...8....1....2........7..5..27...........81...6.....");
		} catch (Exception e) {
			e.printStackTrace();
		}
		
//		solver2 s = new solver2();
//		s.start();
//		solver2.sleep(100);
//		s.stop = true;
//		solver2.sleep(100);
		

		solver s = new solver(g);
		
		s.solve();

		System.out.println(t.toStringFull());




	}

}
